
const INITIAL_STATE = {
    safeHeight: 0
}
const INIT_TABBAR = {
    current: "home"
}

export function safeArea(state = INITIAL_STATE, action: any) {
    switch (action.type) {
        case 'SET':
            return {
                ...state,
                safeHeight: action.payLoad
            }
        default:
            return state
    }
}

export function tabbar(state = INIT_TABBAR, action: any) {
    console.log("触发了121231321321", action)
    switch (action.type) {
        case 'SET_TABBAR':
            return {
                ...state,
                current: action.payLoad
            }
        default:
            return state
    }
}